package com.article.dao;

import com.article.common.PageParam;
import com.article.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserDao {

    int insert(User user);

    int updateById(User user);

    int deleteById(Integer id);

    List<User> queryAll(@Param(value = "pageParam") PageParam pageParam);

    User selectById(Integer id);

    User selectOneByAccount(@Param(value = "account") String account);
}
